package com.tyut.config;

import com.tyut.domain.Student;
import com.tyut.service.StudentService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


    @Configuration
    public class MyConfig {

        @Bean
        public StudentService studentService(Student student) {
            return new StudentService(student);
        }
    }

